package club.pinea.interfaces;

import club.pinea.session.IOSession;

public interface TCPMessage<T> {

    /**
     * 执行特定的消息处理
     *
     * @param msg
     * @param session
     * @throws Exception
     */
    void doMessage(T msg, IOSession session) throws Exception;

}
